package com.hxg.bl.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Entity
@Data
@Table(name = "CM_APPOINTMENT_PERIMOD_TIME")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class AppointmentPeriodTimeBean {

    public AppointmentPeriodTimeBean() {}

    public AppointmentPeriodTimeBean(String startTime, String endTime, Integer appointmentNum) {
        this.startTime = startTime;
        this.endTime = endTime;
        this.appointmentNum = appointmentNum;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private Long appointmentConfId;

    @Column(columnDefinition = "int DEFAULT NULL COMMENT '预约人数'")
    private Integer appointmentNum;

    @Column(columnDefinition = "varchar(20) NULL DEFAULT NULL COMMENT '开始时间'")
    private String startTime;

    @Column(columnDefinition = "varchar(20) NULL DEFAULT NULL COMMENT '开始时间'")
    private String endTime;
}
